package com.cmc.cloud.cmclink.doc.convert;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.cmc.cloud.cmclink.doc.api.document.req.cargomanifest.CargoManifestReqDTO;
import com.cmc.cloud.cmclink.doc.api.document.req.cargomanifest.RowBlnoInfo;
import com.cmc.cloud.cmclink.doc.entity.BlnoDO;
import com.cmc.cloud.cmclink.doc.vo.manifestvo.cargomanifest.CargoManifestQueryReqVO;

/**
 * Cargo Manifest Convert
 *
 * @author 招商轮船-管理员
 */
@Mapper
public interface CargoManifestConvert {
    /**
     * 获取转换接口的实例
     */
    CargoManifestConvert INSTANCE = Mappers.getMapper(CargoManifestConvert.class);

    /**
     * convert
     *
     * @param req req
     * @return req
     */
    CargoManifestReqDTO convert(CargoManifestQueryReqVO req);

    /**
     * convert
     *
     * @param blnoDo blnoDo
     * @return RowBlnoInfo
     */
    RowBlnoInfo convert(BlnoDO blnoDo);

}
